﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/NoLog.Master" Inherits="System.Web.Mvc.ViewPage<Rose.Models.ForgotPasswordModel>" %>



<asp:Content ID="Content2" ContentPlaceHolderID="MiddleContent" runat="server">



    <form method="post" id="" action="/Account/ForgotPassword">
    <div id="accountform">
    <% bool isshow = true; %>

<%if (Model.SecretQuestion == null)
  { %>
  
   <p><a class="laber">&nbsp;</a><a class="info"><%=ViewData["Message"] %></a></p>
  <p><a class="laber">请输入邮箱账号:</a><a class="info"><%=Html.TextBoxFor(m => m.UserName)%></a></p>
<%} %>
    
  <%else
    { %>
    
    <p><a class="info"><%=Html.HiddenFor(m => m.UserName)%></a></p>
            <%if (Model.SecretQuestion != "schoolparty")
              {%>
     <p><a class="laber">你的问题:</a><a class="info"><%=Html.Label(Model.SecretQuestion)%></a></p>
   <p><a class="laber">请输入你的答案:</a><a class="info"><%=Html.TextBoxFor(m => m.SecretAnswer)%></a></p>
            <%}
                  
                  
                  
              else
              {
                  isshow = false;%>
                <p><a class="laber">你的问题:</a><a class="info" style="color:Red">该账号未设置任何保密问题!</a></p>

              <%} %>
  <%} %>
  </div>
  <%if (isshow)
    { %>
    <p><a class="laber">&nbsp;</a><a class="info"><input type="submit" value="确定" /></a></p>
    
    <%}
    else
    {%>
    <p><a class="laber">&nbsp;</a><a class="info"></a><a  style="cursor:pointer" class="info" onclick="javascript:window.location.href='/Account/Register';" >重新注册</a></p>
    
    <% }%>
  
</form>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<link href="../../Content/Css/registerform.css" rel="Stylesheet" />
</asp:Content>
